﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WpfHero;

namespace Tutorial
{
    /// <summary>
    /// Custom control representing a song note on the song scroller.
    /// </summary>
    public class GemControl : Control
    {
        static GemControl()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(GemControl), new FrameworkPropertyMetadata(typeof(GemControl)));
        }

        /// <summary>
        /// Gets or sets the Status of this Gem instance.
        /// </summary>
        public GemStatus Status
        {
            get { return (GemStatus)GetValue(StatusProperty); }
            set { SetValue(StatusProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Status.This enables animation, styling, binding, etc...
        public static readonly DependencyProperty StatusProperty =
        DependencyProperty.Register("Status", typeof(GemStatus), typeof(GemControl));
    }
}
